<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);
ini_set("error_log", __DIR__ . '/error.log');

include "functions.php";
include "config.php";

$action = $_GET['act'] ?? 'index';
$qeditor = isset($_GET['qeditor']);
$qcmt = isset($_GET['qcmt']);
$qlist = isset($_GET['qlist']);

if ($qeditor) {
    //这里属于数据编辑逻辑
    app\QEdit::init();
} elseif ($qcmt) {
    app\QCmt::init();
} elseif ($qlist) {
    app\QList::init();
} else {
    //这里属于后台配置逻辑
    call_user_func([new \app\Manage(), $action]);
}



